<p>
  <b>Message Type:</b>
  <%=h @message.mtype %>
</p>

<p>
  <b>Message Time:</b>
  <%=h @message.mtime %>
</p>

<p>
  <b>Sender:</b>
  <% if @message.sender && User.find(@message.sender) %>
    <%=h User.find(@message.sender).name %>
  <% else %>
    <%= "None" %>
  <% end %>
</p>

<p>
  <b>Receiver:</b>
  <% if @message.receiver && User.find(@message.receiver) %>
    <%=h User.find(@message.receiver).name %>
  <% else %>
    <%= "None" %>
  <% end %>
</p>

<p>
  <b>Handled</b>
  <%=h @message.handled %>
</p>

<%= link_to 'Edit', edit_message_path(@message) %> |
<%= link_to 'Back', messages_path %>
